package org.spring.springboot.app.hard.hardinfo.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.app.hard.hardinfo.domain.po.HardInfoPO;
import org.spring.springboot.app.hard.hardinfo.domain.vo.SyshardinfoSearchVO;
import org.spring.springboot.app.hard.hardinfo.domain.vo.SyshardinfoVO;
import org.spring.springboot.app.hard.hardregister.domain.po.HardRegisterPO;

import java.util.List;

public interface HardInfoDao {
    int deleteByPrimaryKey(String id);

    int insert(HardInfoPO record);

    int insertSelective(HardInfoPO record);

    HardInfoPO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HardInfoPO record);

    int updateByPrimaryKey(HardInfoPO record);

    List<HardInfoPO> findAll(String officeId, String types);

    List<SyshardinfoVO> findPage(SyshardinfoSearchVO searchvo, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    SyshardinfoVO findSigle(String id);

    HardInfoPO queryByHardEquiId(String hardequiid);

    HardRegisterPO deviceRegister(String deviceHardId,String password); //查询注册表

    List<SyshardinfoVO> findPageAgent(SyshardinfoSearchVO searchvo, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize,String officeId);


}